﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;

namespace GEF1.GEF
{
    public class Entity : IEntity
    {
        EntityView mEntityView;
        public Entity(Form form)
        {
            mEntityView = new EntityView(form, 100, 100, 150, 160);
        }

        public void select(bool selected)
        {
            mEntityView.select(selected);
        }

        public bool containsRect(System.Drawing.Rectangle rect)
        {
            return mEntityView.containsRect(rect);
        }

        public bool containsPoint(System.Drawing.Point point)
        {
            return mEntityView.containsPoint(point);
        }

    }

}
